package com.example.httplibrary.mvp;

import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleObserver;
import androidx.lifecycle.OnLifecycleEvent;

/**
 * @author Hans
 * @create 2019/3/19
 * @description
 */
public interface IBasePresenter extends LifecycleObserver {

//    /**
//     * 绑定view到presenter
//     *
//     * @param pView
//     * @param context
//     */
//    void onAttach(V pView, Context context);
//
//    /**
//     * 解绑view
//     */
//    void onDettach();


    @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
    void onDestroy();
}
